<?php 
include('../conn.php');
mysql_query('SET NAMES UTF8'); 
	  
class MyPrizeBean
{
	public $fulse;

	function __construct($fulse)
	{
		$this->fulse      = $fulse;
	}
}

	$prize = array();
	
 if($_REQUEST[shopid]!=""){ 
          if($_REQUEST[phone]!=""){
	           $srat=mysql_query("update  shop set phone='".$_REQUEST[phone]."'  where shopid =".$_REQUEST[shopid]);
	           $der=100;
		  }else{
	           $der=200;
		  }
	}else{
			  $der=300;
	}

$prize[] = new MyPrizeBean($der);
echo json_encode($prize);
?>